<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>商品管理-商品回收站</title>
    <jsp:include page="../../include/base.jsp"></jsp:include>
	<jsp:include page="../../include/common.jsp"></jsp:include>
	<jsp:include page="../../include/baseManage.jsp"></jsp:include>
  </head>
  <body>   
  	<div class="mini-toolbar" style="border:0;font-size:12px;padding-left:6px;"> 
        <!-- 操作面板 -->
        <div class="operatePanel">
        	<input class="mini-button" text="还原商品" iconCls="icon-undo" plain="false" 
	       		onclick="GoodsTrashHandler.revertGoods" visible="false" id="goods_trash_revert"/>
	       	<input class="mini-button" text="删除商品" iconCls="icon-remove" plain="false" 
	       		onclick="GoodsTrashHandler.delGoods" visible="false" id="goods_trash_del"/>
	       	<input class="mini-button" text="展开查询" iconCls="icon-btn-expand" plain="false" 
	       		onclick="GoodsTrashHandler.queryGoodsTrash" visible="false" id="goods_trash_query"/>
	       	<input class="mini-button" text="刷新" iconCls="icon-btn-refresh" plain="false" 
	       		onclick="GoodsTrashHandler.afresh" visible="false" id="goods_trash_refresh"/>
	    </div>
	    <!-- 查询面板 -->
	    <div id="queryGoodsTrashDiv" class="queryPanel">
	    	<label class="queryPanelLbl">关键字：</label>
	    	<input class="mini-textbox" id="bgiKeyword"/>
	    	<input class="mini-button" text="查询" iconCls="icon-btn-search" plain="false" 
	    		onclick="GoodsTrashHandler.doQueryGoodsTrash"/>
	    </div>
    </div>
    <div class="mini-fit" id="goodsTrashPanel">
	    <div id="goodsTrashGrid" class="mini-datagrid" fitColumns="true" style="width:100%;height:100%;" 
	    	multiSelect="true" pageSize="20" borderStyle="border-bottom:0;border-left:0;border-right:0;"
	    	virtualScroll="true" idField="bgiId" url="<%=path %>/getGoodsTrashList.do">
	        <div property="columns">
	        	<div type="checkcolumn" ></div>
	            <div type="indexcolumn" width="40" headerAlign="center">序号</div>
	            <div field="bgiName" name="bgiName" width="100%" headerAlign="center" allowSort="true">商品名称</div>
	            <div field="bgiGsn" name="bgiGsn" width="200" headerAlign="center" align="center" allowSort="true">商品货号</div>    
	            <div field="bgiPrice" name="bgiPrice" width="100" headerAlign="center" align="center" allowSort="true">商品价格</div>
	            <div field="bgiState" name="bgiState" width="100" headerAlign="center" align="center" allowSort="true">状态</div>
	            <div field="bgiOperation" name="bgiOperation" width="100" headerAlign="center" align="center">操作</div>                             
	        </div>
	    </div>
    </div>
  </body>
  <script src="handler/GoodsTrashHandler.js" type="text/javascript"></script>
</html>
